#pragma once

#include "common.h"

string ParseHexString(const string& hexStr);

class CHexUtils
{
private:
	static const char toHexTable[256][2];

public:
	static string hexify(const unsigned char *data, unsigned int length);
	
	static unsigned char *dehexify(const unsigned char *data, unsigned int length);
	static unsigned char *dehexify(const string &hexified);
	
	static int getHexDigitVal(const char c);
};